package com.marry.mybatis;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ml
 * @create 2017-11-07--15:16
 */
public class UserMapperXML {

    public static final String namespace="com.marry.mybatis.UserMapper";

    private static Map<String,String> methodSqlMap=new HashMap<>();

    static {
        methodSqlMap.put("findUserByUsername","select * from user where username='%s'");
    }

    public static String getMethodSQL(String method){
        return methodSqlMap.get(method);
    }
}
